﻿package {
	import flash.display.Sprite;
	
	public class Gem extends Sprite {
		
		private static var centerX:Number = 320;
		private static var centerY:Number = 200;
		private static var radius:Number = 125;
		
		private var _phase:Number;
		
		public function Gem() {
			this.phase = 0;
		}
		
		public function get phase():Number { return _phase; }
		public function set phase(value:Number):void {
			this._phase = value;
			this.x = centerX + radius * Math.cos(_phase);
			this.y = centerY + radius * Math.sin(_phase);
		}	
	}
}